package com.linjiang.spring;

/**
 * bean的后置处理器接口
 */
public interface BeanPostProcessor {


    /**
     * bean初始化前调用
     * @param bean
     * @param beanName
     * @return
     */
    Object postProcessBeforeInitialization(Object bean, String beanName);

    /**
     * bean 初始化后调用
     * @param bean
     * @param beanName
     * @return
     */
    Object postProcessAfterInitialization(Object bean, String beanName);
}
